package com.jxbai.design.pattern.dcxy.factory.simple;

/**
 * 工厂角色
 * @author jxbai
 * @date 2021/12/13
 */
public class WuLinFactory {

    public Car newCar(String type) {
        if ("van".equals(type)) {
            return new VanCar();
        } else {
            return new MiniCar();
        }
    }
}
